Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prefect-worker): support extra initContainers #403

Merged

Conversation

NiJuFirenzia
Copy link
Contributor

@NiJuFirenzia NiJuFirenzia commented Oct 22, 2024

Providing option to create extra Init Containers for Workers. The Init Containers are set up as optional in addition to the Init Container that is already present in the worker to allow for syncing basejob template. A definition for "extraContainers" has been added.

Resolves #393

@NiJuFirenzia NiJuFirenzia requested a review from a team as a code owner October 22, 2024 19:24
@jamiezieziula
Copy link
Contributor

Hi @NiJuFirenzia - thanks for the contribution! Looks like theres just a few linting errors. Once those are fixed, I'll be happy to merge.

@mitchnielsen
Copy link
Contributor

And bonus points if you add test(s)! https://github.com/PrefectHQ/prefect-helm/blob/main/charts/prefect-worker/tests/worker_test.yaml

@NiJuFirenzia
Copy link
Contributor Author

Hi @jamiezieziula and @mitchnielsen, I added a test case for the additional extra containers and fixed the lint error. Let me know if anything else is needed.

@mitchnielsen mitchnielsen changed the title Adding option for defining extra Init Containers feat(prefect-worker): support extra initContainers Oct 25, 2024
@mitchnielsen
Copy link
Contributor

Thanks for the contribution @NiJuFirenzia!

@mitchnielsen mitchnielsen merged commit fe70769 into PrefectHQ:main Oct 25, 2024
13 checks passed
@mitchnielsen mitchnielsen added the feature A new feature label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option for creating additional Init Containers for Workers
3 participants